package com.kly.sc.api.integration.userplatform;

import com.alibaba.fastjson.JSONObject;
import com.kly.sc.api.infras.exception.ApplicationException;
import com.kly.sc.api.integration.userplatform.util.ApiClient;

import java.util.Optional;

/**
 * model招呼语调用处理类
 * @author linqu
 */
public class GreetingAPI extends ApiClient {

    private final static String getModelGreeting = "/api/greeting/getModelGreeting";

    public GreetingAPI(String auth) {
        super(auth);
    }

    public JSONObject getModelGreeting(JSONObject request) throws ApplicationException {
        return Optional.ofNullable(this.post(getModelGreeting, request)).orElse(new JSONObject());
    }


}
